from fastapi import APIRouter
from app.schemas import user_schema
from app.services import user_service

router = APIRouter()

@router.post("/users/register")
async def register_user(user: user_schema.UserRegister):
    return await user_service.register_user(user)

@router.post("/users/login")
async def login_user(user: user_schema.UserLogin):
    return await user_service.login_user(user)